namespace Apps.Models
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("PL_RC_DETAILS")]
    public partial class PL_RC_DETAILS
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public PL_RC_DETAILS()
        {
            DI_ASSAY = new HashSet<DI_ASSAY>();
            DI_METERING = new HashSet<DI_METERING>();
            RC_PROCESS = new HashSet<RC_PROCESS>();
            PUB_SCHEME = new HashSet<PUB_SCHEME>();
        }

        [Key]
        [StringLength(40)]
        public string DETAIL_ID { get; set; }

        [StringLength(40)]
        public string PLAN_ID { get; set; }

        [StringLength(40)]
        public string BATCH_CODE { get; set; }

        public decimal? AMOUNT { get; set; }

        public decimal? QNET { get; set; }

        public decimal? ST { get; set; }

        public DateTime? PLAN_DATE { get; set; }

        [StringLength(10)]
        public string BEGIN_TIME { get; set; }

        [StringLength(10)]
        public string END_TIME { get; set; }

        [StringLength(40)]
        public string MATERIEL_ID { get; set; }

        [StringLength(40)]
        public string SUPPLIER_ID { get; set; }

        [StringLength(40)]
        public string MINE_ID { get; set; }

        [StringLength(40)]
        public string TRANSPORT_ID { get; set; }

        [StringLength(500)]
        public string REMARKS { get; set; }

        [StringLength(40)]
        public string CONTRACT_DETAIL_ID { get; set; }
        public int ARTIFICIAL_CODE { get; set; }

        public virtual CONTRACT_DETAIL CONTRACT_DETAIL { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DI_ASSAY> DI_ASSAY { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<DI_METERING> DI_METERING { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<RC_PROCESS> RC_PROCESS { get; set; }

        public virtual PUB_SUPPLIER PUB_SUPPLIER { get; set; }

        public virtual PL_RC_PLANS PL_RC_PLANS { get; set; }

        public virtual PUB_TRANSPORT PUB_TRANSPORT { get; set; }

        public virtual PUB_MATERIEL PUB_MATERIEL { get; set; }

        public virtual PUB_MINE PUB_MINE { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<PUB_SCHEME> PUB_SCHEME { get; set; }
        
    }
}
